<%@ page import="ingresso.Avaliacao" %>



<div class="fieldcontain ${hasErrors(bean: avaliacaoInstance, field: 'usuario', 'error')} required">
	<label for="usuario">
		<g:message code="avaliacao.usuario.label" default="Usuario" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="usuario" name="usuario.id" from="${ingresso.Usuario.list()}" noSelection="${['null':'Selecione um usuário']}" optionKey="id" required="" value="${avaliacaoInstance?.usuario?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: avaliacaoInstance, field: 'evento', 'error')} required">
	<label for="evento">
		<g:message code="avaliacao.evento.label" default="Evento" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="evento" name="evento.id" from="${ingresso.Evento.list()}" noSelection="${['null':'Selecione um Evento']}" optionKey="id" optionValue="descricao" required="" value="${avaliacaoInstance?.evento?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: avaliacaoInstance, field: 'nota', 'error')} required">
	<label for="nota">
		<g:message code="avaliacao.nota.label" default="Nota" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="nota" type="number" value="${avaliacaoInstance.nota}" required=""/>
</div>

